package com.aqgj.SysLog.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.aqgj.util.BaseEntity;
import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "sys_log")
public class SysLog implements BaseEntity {

    private String id;//ä¸»é”®id

    private String loginName;//ç™»é™†å��

    private String roleName;//è§’è‰²å��

    private String optContent;//å†…å®¹

    private String clientIp;//å®¢æˆ·ç«¯ip

    private java.util.Date createTime;//åˆ›å»ºæ—¶é—´

    public void setId(String value){
        this.id = value;
    }
    public void setLoginName(String value){
        this.loginName = value;
    }
    public void setRoleName(String value){
        this.roleName = value;
    }
    public void setOptContent(String value){
        this.optContent = value;
    }
    public void setClientIp(String value){
        this.clientIp = value;
    }
    public void setCreateTime(java.util.Date value){
        this.createTime = value;
    }
    @Id
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @Column(name ="id",unique=true,nullable=false,insertable=true,updatable=true,length=32)
    public String getId(){
        return this.id;
    }
    @Column(name ="login_name",unique=false,nullable=true,insertable=true,updatable=true,length=255)
    public String getLoginName(){
        return this.loginName;
    }
    @Column(name ="role_name",unique=false,nullable=true,insertable=true,updatable=true,length=255)
    public String getRoleName(){
        return this.roleName;
    }
    @Column(name ="opt_content",unique=false,nullable=true,insertable=true,updatable=true,length=1024)
    public String getOptContent(){
        return this.optContent;
    }
    @Column(name ="client_ip",unique=false,nullable=true,insertable=true,updatable=true,length=255)
    public String getClientIp(){
        return this.clientIp;
    }
    @Column(name ="create_time",unique=false,nullable=false,insertable=true,updatable=true,length=0)
    public java.util.Date getCreateTime(){
        return this.createTime;
    }


} 
